package com.tanran.es.respository;

import com.tanran.es.model.EsBlog;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by Enzo Cotter on 2019/12/26.
 */
public interface EsBolgRespository extends ElasticsearchRepository<EsBlog,Long> {
    List<EsBlog> findByContentOrTitle(String content,String title);

}
